package com.deuwise.system.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * Copyright
 *
 * @author chenwenchao
 * @date 2019/3/26
 * Description:
 */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName("sys_password_log")
public class PassWordLogDo extends Model<PassWordLogDo> implements Serializable {

    /**主键id*/
    @ApiModelProperty("主键id")
    @TableField("id")
    @TableId
    private String id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("操作时间")
    @TableField("operate_time")
    private Date operateTime;

    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
